#include <stdlib.h>

main()
{
    int i;
    char *p;

    for (i=0; ; i++)
    {
	p = malloc(10000);
	if (!p)
	{
	    printf("pgm failed to get mem after %d\n",i);
	    exit(-1);
	}
    }
}
